let api = {};
let pre = '/v1'
// let pre = '/wbApi'
let iot = '/iotApi'

/** 登录 */
api.captcha = pre + '/captcha'
api.login = pre + '/login'
api.logout = pre + '/logout'

/** 评测管理*/
api.test = {
    page: pre + '/am_assessment/page',
    list: pre + '/am_assessment/list',
    add: pre + '/am_assessment/add',
    update: pre + '/am_assessment/edit',
    del: pre + '/am_assessment/delete',
    findById: pre + '/am_assessment/info',
    workerTree: pre + '/am_assessment/tree',
    getTestInfoById: pre+ '/api_mp/info',
    result: pre + '/am_assessment_result/result_statistics_one',
    getPersonNoAssessment: pre + '/am_assessment_result/not_assessment_staff',
    publish: pre + '/am_assessment/enable',//发布测试
    previewTest: pre + '/am_assessment_result/info',//预览试题
    getScoreExcel: pre + '/am_assessment_result/result_statistics_export',
    barChart: pre + '/am_assessment_result/result_statistics_histogram',
    delScore: pre + '/am_assessment_result/delete_score',
}

/** 题型 */
api.questionType = {
    list: pre + '/qb_question_type/list',
    add: pre + '/qb_question_type/add',
    update: pre + '/qb_question_type/edit',
    del: pre + '/qb_question_type/delete',
    findById: pre + '/qb_question_type/info',
}
/** 题目*/
api.question = {
    page: pre + '/qb_question/page',
    list: pre + '/qb_question/list',
    add: pre + '/qb_question/add',
    update: pre + '/qb_question/edit',
    del: pre + '/qb_question/delete',
    findById: pre + '/qb_question/info',
}
/** 员工*/
api.worker = {
    page: pre + '/to_staff/page',
    list: pre + '/to_staff/list',
    add: pre + '/to_staff/add',
    update: pre + '/to_staff/edit',
    del: pre + '/to_staff/delete',
    findById: pre + '/to_staff/info',
    upload: pre + '/to_staff/import_excel',
    getWorkerByDeptId: pre + '/to_dept/to_staff_by_to_dept_id_list',
    downloadTemplate: pre + '/excel/template/download',
}
/** 部门*/
api.department = {
    page: pre + '/to_dept/page',
    list: pre + '/to_dept/list',
    add: pre + '/to_dept/add',
    update: pre + '/to_dept/edit',
    del: pre + '/to_dept/delete',
    findById: pre + '/to_dept/info',
    tree: pre + '/to_dept/tree'
}
export default api;
